package com.dushibao.manage.goodsFloor;

import com.dushibao.service.GoodsFloorService;
import com.dushibao.service.impl.GoodsFloorServiceImpl;
import com.dushibao.utils.Page;
import com.dushibao.view.ModelAndView;
import lombok.SneakyThrows;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

@WebServlet("/goodsFloor/list")
public class ListServlet extends HttpServlet {
    GoodsFloorService goodsFloorService = new GoodsFloorServiceImpl();

    @SneakyThrows
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp)  {
        Page iPage = goodsFloorService.page();

        Map<String,Object> maps = new HashMap<>();
        maps.put("iPage",iPage);

        ModelAndView mv = new ModelAndView("goodsFloor/list",maps);
    }
}
